<?php
return array(
	/**
	 * @var string name, 网站名称
	 * @var string basePath, 当前应用部署路径
	 * @var string language, 当前应用语言类型
	 */
	'name' => 'WSCORE',
	'basePath' => WSCORE_PATH.'/app/'.WSCORE_APP,
	'language' => 'zh_cn', 
	'import' => array('wscore.controller.*'),
	/**
	 * @var array preload, 前置加载
	 * @var array components, 部件配置
	 */
	'preload' => array('log'), 
	'components' => array(
		/**
		 * URL重写控制
		 */
		'urlManager' => array(
			'urlFormat' => 'path', 'showScriptName' => false, 'rules' => array()
		),
		/**
		 * Cookie作用域
		'session' => array(
			'cookieParams' => array('domain' => '.wscore.com'),
		),
		 */
		/**
		 * MySQL-PDO
		 */
		'db' => array(
			'class' => 'CDbConnection', 
			'connectionString' => 'mysql:host=192.168.1.167;dbname=cloud_wudao', 
			'emulatePrepare' => true, 
			'username' => 'wudao', 
			'password' => 'ab43e20ec93ffd7c', 
			'charset' => 'utf8', 
			'tablePrefix' => 'tbl_'
		),
		/**
		 * 调试模式
		 */
		'log' => array(
            'class' => 'CLogRouter', 'routes' => array(
                array(
                    'class' => 'CWebLogRoute', 
					'levels' => 'error, warning, profile, trace'
                )
            )
        ),
		/**
		 * 用户配置
		'user' => array(
			'class' => 'WebUser',
			'allowAutoLogin' => true,
			'returnUrl' => 'http://my.wscore.com',
			'identityCookie' => array('domain' => '.wscore.com'),
		), 
		*/
		
		// 'statePersister' => array(
			// 'stateFile' => WSCORE_PATH . '/runtime/state.bin',
		// ),
	),
	/**
	 * 公共参数
	'params' => array(
		'yiidebug' => false,
		'baseurl' => 'wscore.com',
	)
	 */
);